import 'package:flutter/material.dart';
import 'package:rain_ui/theme/base/rain_base_theme.dart';
import 'package:provider/provider.dart';
import 'package:rain_ui/theme/rain_normal_theme.dart';
import 'package:rain_ui/rain_ui.dart';



class RainThemeNotifier extends ChangeNotifier {
  static final RainNormalTheme normalTheme = RainNormalTheme();

  RainBaseTheme get theme => normalTheme;
}

class RainTheme {

  static RainBaseTheme of(BuildContext context, {bool listen = true}) => Provider.of<RainThemeNotifier>(context, listen: listen).theme;

  static RainBaseTheme get current => of(RainUi.context, listen: false);
}
